package org.edu.service.impl;

import java.util.List;

import org.edu.dao.SemesterNotesDao;
import org.edu.model.SemesterNotes;
import org.edu.service.SemesterNotesService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

@Service("semesterNotesService")
public class SemesterNotesServiceImpl implements SemesterNotesService {

	@Autowired
	private SemesterNotesDao semesterNotesDao;
	public SemesterNotesServiceImpl() {
		// TODO Auto-generated constructor stub
	}

	@Transactional
	public void save(SemesterNotes semesterNotes) throws Exception {
		semesterNotesDao.save(semesterNotes);
	}

	@Transactional
	public void update(SemesterNotes semesterNotes) throws Exception {
		semesterNotesDao.update(semesterNotes);
	}

	@Transactional
	public void remove(SemesterNotes semesterNotes) throws Exception {
		semesterNotesDao.remove(semesterNotes);
	}

	@Transactional
	public List<SemesterNotes> semesterNotes() {
		return semesterNotesDao.semesterNotes();
	}

	@Transactional
	public SemesterNotes findById(Long semester_notes_id) throws Exception {
		return semesterNotesDao.findById(semester_notes_id);
	}

}
